package com.mitaotao._1_语法._4_循环.单循环._02_求和1到100;


public class _02_1_求和for {
    public static void main(String[] args) {
        int sum = 0;
        for (int n=1;n<=100;n++){
            sum = sum+n;
        }
        System.out.println("1-100的和为："+sum);
    }
}
